package com.example.admin.yuejian_22.Interf;

import com.example.admin.yuejian_22.Bean.AppIntroBean;
import com.example.admin.yuejian_22.Bean.ClubFavorBean;
import com.example.admin.yuejian_22.Bean.ClubList;
import com.example.admin.yuejian_22.Bean.CommentBean;
import com.example.admin.yuejian_22.Bean.FanUser;
import com.example.admin.yuejian_22.Bean.MyPhotoBean;
import com.example.admin.yuejian_22.Bean.OrderBean;
import com.example.admin.yuejian_22.Bean.PhotoBean;
import com.example.admin.yuejian_22.Bean.SendCBean;
import com.example.admin.yuejian_22.Bean.UserBean;


import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by Admin on 2017/9/25.
 */

public interface  RetrofitService {
    //俱乐部   最具人气
    @GET("lists/mod/club")
    Call<List<ClubList>>getAllClub();
   //俱乐部  离我最近
    @GET("nearclub")
    Call<List<ClubList>>getNearClub();
    //俱乐部  搜索
    @GET("lists/mod/club")
    Call<List<ClubList>> getSearchClub(
            @Query("club_name") String club_name);
    //俱乐部  详情
    @GET("get/mod/club")
    Call<List<ClubList>> getClubDetail(
            @Query("id") String id);
 //获取俱乐部课程详细信息
 @GET("get/mod/{mod}/SessionID/{SessionID}/related/{related}/id/{id}/map/{map}")
 Call<ClubList> getCourseinfo(
         @Path("SessionID") String SessionID,
         @Path("related") String related,
         @Path ("map") String map,
         @Path("mod") String mod,
         @Path("id") String id
 );
 //获取俱乐部视频详细信息
 @GET("get/mod/{mod}/SessionID/{SessionID}/related/{related}/id/{id}/map/{map}")
 Call<ClubList> getVideoinfo(
         @Path("SessionID") String SessionID,
         @Path("related") String related,
         @Path ("map") String map,
         @Path("mod") String mod,
         @Path("id") String id
 );
    //用户  登录
    @GET("login")
    Call<UserBean> Login(
                @Query("tel") String tel,
                @Query("password") String password);
    //用户  注册
    @GET("reg")
    Call<UserBean> getRegister(
            @Query("tel") String tel,
            @Query("password") String pwd);

    //用户  保存id
    @GET("get/SessionID/{SessionID}/userid/{userid}")
    Call<UserBean> getUserById(
            @Path("SessionID") String SessionID,
            @Path("mod") String mod,
            @Path("id") String id
    );
    //个人中心获取信息
    @GET("getmine/SessionID/{SessionID}/userid/{userid}")
    Call<UserBean> getUserInfo(
            @Path("SessionID") String SessionID,
            @Path("userid") String userid
    );
    //个人中心：关于约健
    @GET("getyuejian/SessionID/{SessionID}")
    Call<AppIntroBean> getAppIntro(
            @Path("SessionID") String SessionID

    );
    //个人中心：帮助与反馈
//    http://172.24.10.175/workout/api.php/create/mod/feedback/content/12312312312/contact/iamzjs@126.com/SessionID/pf2cmg5jk9p24f2mv1kjf55bo3
    @GET("create/mod/feedback/content/{content}/contact/iamzjs@126.com/SessionID/pf2cmg5jk9p24f2mv1kjf55bo3")
    Call<Integer> sendHelp(
            @Path("content") String content

    );
    //个人中心：晒图列表
//    http://172.24.10.175/workout/api.php/lists/mod/shaitu/SessionID/060pn7sjorpnq5fp53kid5st54/userid/19
    @GET("lists/mod/shaitu/SessionID/060pn7sjorpnq5fp53kid5st54/userid/{userid}")
    Call<List<MyPhotoBean>> getMyPhoto(
            @Path("userid") String userid

    );
    //个人中心：关注列表
    @GET("lists/mod/fans/SessionID/060pn7sjorpnq5fp53kid5st54/userid/{userid}/fans_type/{fans_type}")
    Call<List<ClubFavorBean>> getclubgz(
            @Path("userid") String userid,
            @Path("fans_type") String fans_type
    );
    //取消关注

//    @GET("getmine/SessionID/{SessionID}/userid/{userid}")
//    Call<List<UserBean>> getInfo(
//            @Path("SessionID") String SessionID,
//            @Path("userid") String userid
//    );

    //个人中心：全部订单列表
//    http://172.24.10.175/workout/api.php/lists/mod/sign/listorder/update_time/userid/19/vstate/0/page/1/SessionID/pf2cmg5jk9p24f2mv1kjf55bo3

    @GET("lists/mod/sign/listorder/update_time/userid/{userid}/vstate/{vstate}/SessionID/pf2cmg5jk9p24f2mv1kjf55bo3")
    Call<List<OrderBean>> getAllOrder(

            @Path("userid") String userid,
            @Path("vstate") String vstate
    );
    //个人中心 修改用户名
//    http://172.24.10.175/workout/api.php/updatename/SessionID/060pn7sjorpnq5fp53kid5st54/userid/2/user_name/zhengjunsheng
    @GET("updatename/SessionID/060pn7sjorpnq5fp53kid5st54/userid/{userid}/user_name/{user_name}")
    Call<UserBean> getEdituname(
            @Path("userid") String userid,
            @Path("user_name") String user_name

    );
    //个人中心 修改密码
//    http://172.24.10.175/workout/api.php/updatepass/SessionID/060pn7sjorpnq5fp53kid5st54/userid/2/password/1234556
    @GET("updatepass/SessionID/060pn7sjorpnq5fp53kid5st54/userid/{userid}/password/{password}")
    Call<UserBean> getEditpassword(
            @Path("userid") String userid,
            @Path("password") String password

    );


    //晒图列表
    @GET("lists")
    Call<List<PhotoBean>> getPhotolist(

    );
    //评论列表
//    http://172.24.10.175/workout/api.php/slists/mod/shaireply
    @GET("slists/mod/shaireply")
    Call<List<CommentBean>> getCommentlist(

    );

    //晒图评论
    @GET("workout/api.php/create/mod/shaireply/SessionID/lgj98rfkiqvenhrk2o7oe2po81")
    Call<Integer> sendComment(
            @Query("shaitu_id") String shaitu_id,
            @Query("userid") String userid,
            @Query("reply_userid") String reply_userid,
            @Query("reply") String reply
    );
//判断是否关注俱乐部
//    isExits/mod/fans/fan_id/447/userid/19/fans_type/1/SessionID/pf2cmg5jk9p24f2mv1kjf55bo3
    @GET("isExits/mod/fans/fan_id/{fan_id}/userid/{userid}/fans_type/1/SessionID/pf2cmg5jk9p24f2mv1kjf55bo3")
    Call<Integer> ifgz(
            @Path("fan_id") String fan_id,
            @Path("userid") String userid
    );
    //关注俱乐部
//    http://172.24.10.175/workout/api.php/focus/SessionID/060pn7sjorpnq5fp53kid5st54/userid/19/fan_id/1/fans_type/1
    @GET("focus/SessionID/060pn7sjorpnq5fp53kid5st54/userid/{userid}/fan_id/{fan_id}/fans_type/1")
    Call<Integer> clubfan(
            @Path("userid") String userid,
            @Path("fan_id") String fan_id
    );


}


